$OpenBSD: patch-WEB-INF_web_xml,v 1.4 2013/11/28 22:41:09 sthen Exp $

- Strip anything outside of <web-app> tag so this file can be used
directly as an include in the main tomcat web.xml <web-app> section.

- Specifically set server-root/web-configuration directories rather
than defaulting to lib/. These must be writable by _tomcat.

- Also note the servlet names are renamed via a regex in the port's
Makefile. This is because this package installs servlets globally for
use on multiple hosts, and avoids conflicting servlet names with any
alternative versions of Railo that are installed via .WAR files in
a single host.
http://jamiekrug.com/blog/index.cfm/2009/4/1/railo-jars-on-jboss-or-tomcat-tips-and-tricks


--- WEB-INF/web.xml.orig	Thu Nov 28 21:44:04 2013
+++ WEB-INF/web.xml	Thu Nov 28 22:31:27 2013
@@ -1,9 +1,3 @@
-<?xml version="1.0" encoding="ISO-8859-1"?>
-<web-app xmlns="http://java.sun.com/xml/ns/javaee"
-	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
-	xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
-	metadata-complete="true"
-	version="2.5">
 
 
 
@@ -24,26 +18,22 @@
     <!-- uncomment the init-param below.  make sure that the param-value     -->
     <!-- points to a valid folder, and that the process that runs Railo has  -->
     <!-- write permissions to that folder.  leave commented for defaults.    -->
-    <!--
     <init-param>
       <param-name>railo-server-directory</param-name>
-      <param-value>/var/Railo/config/server/</param-value>
+      <param-value>/var/tomcat/railo/server-config/</param-value>
       <description>Railo Server configuration directory (for Server-wide configurations, settings, and libraries)</description>
     </init-param>
-    !-->
     <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
     <!-- to specify the location of the Web Contexts' config and libraries,  -->
     <!-- uncomment the init-param below.  make sure that the param-value     -->
     <!-- points to a valid folder, and that the process that runs Railo has  -->
     <!-- write permissions to that folder.  the {web-context-label} can be   -->
     <!-- set in Railo Server Admin homepage.  leave commented for defaults.  -->
-    <!--
     <init-param>
       <param-name>railo-web-directory</param-name>
-      <param-value>/var/Railo/config/web/{web-context-label}/</param-value>
+      <param-value>/var/tomcat/railo/web-config/{web-context-label}/</param-value>
       <description>Railo Web Directory (for Website-specific configurations, settings, and libraries)</description>
     </init-param>
-    !-->
     <load-on-startup>1</load-on-startup>
   </servlet>
 
@@ -120,13 +110,3 @@
 
 
 
-	<!-- default file to execute if directory is called with no file name, e.g. http://mysite.com/ !-->
-	<welcome-file-list>
-		<welcome-file>index.cfm</welcome-file>
-		<welcome-file>index.cfml</welcome-file>
-		<welcome-file>index.html</welcome-file>
-		<welcome-file>index.htm</welcome-file>
-		<welcome-file>index.jsp</welcome-file>
-	</welcome-file-list>
-
-</web-app>
\ No newline at end of file
